<extend name="Public/base"/>

<block name="style">
    <link rel="stylesheet" type="text/css" href="__STATIC__/layer/skin/layer.css" media="all">
    <script type="text/javascript" src="__STATIC__/uploadify/jquery.uploadify.min.js"></script>
    <script type="text/javascript" src="__STATIC__/layer/layer.js"></script>
</block>

<block name="body">
    <div class="main-title">
        <h2>新增图片</h2>
    </div>
    <form action="{:U('saveRedPackge')}" method="post" class="form-horizontal">
        <div class="form-item">
            <label class="item-label">红包名称</label>
            <div class="controls">
                <input type="text" class="text input-large" name="name" value="{$info.name}">
            </div>
        </div>

        <div class="form-item">
            <label class="item-label">红包金额</label>
            <div class="controls">
                <input type="text" class="text input-large" name="money" value="{$info.money}">
            </div>
        </div>

        <div class="form-item">
            <label class="item-label">红包数量</label>
            <div class="controls">
                <input type="text" class="text input-large" name="num" value="{$info.num}">
            </div>
        </div>

        <div class="form-item">
            <label class="item-label">是否是分享<span class="check-tips"></span></label>
            <div class="controls">
                <label class="radio"><input type="radio" name="type" value="1">是</label>
                <label class="radio"><input type="radio" name="type" checked value="0">否</label>
            </div>
        </div>

        <div class="form-item">
            <input type="hidden" name="id" value="{$info.id|default=''}">
            <button class="btn submit-btn ajax-post" id="submit" type="submit" target-form="form-horizontal">确 定</button>
            <button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
        </div>
    </form>
</block>

<block name="script">
    <script type="text/javascript">
        highlight_subnav("{:U('index')}");
    </script>

</block>
